﻿<UserControl x:Class="Berico.SnagL.Infrastructure.Controls.ZoomSlider"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:berico="clr-namespace:Berico.Windows.Controls;assembly=Berico.Windows.Controls"  
    xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL4"             
    mc:Ignorable="d"
    d:DesignHeight="25" d:DesignWidth="100"
    DataContext="{Binding ZoomSliderVM, Source={StaticResource Locator}}">
    <Grid>
        <berico:Slider Minimum="0.05" Maximum="4" Value="{Binding CurrentValue, Mode=TwoWay}" Width="100" ShowValueTips="False">
        	<i:Interaction.Triggers>
        		<i:EventTrigger EventName="ValueChanged">
        			<cmd:EventToCommand Command="{Binding OnValueChanged, Mode=OneWay}" PassEventArgsToCommand="True"/>
        		</i:EventTrigger>
        	</i:Interaction.Triggers>
        </berico:Slider>
    </Grid>
</UserControl>
